<%@ page import="com.scau.ums.model.Repairreport" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/7/29
  Time: 10:31
  To change this template use File | Settings | File Templates.

  这个页面暂时不用了，审核报修单只需要在verifyrepairreport页面里 by xfy
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<html>
<script>
    function VerifyFailed() {
        if(document.getElementById("remark").value === "")
            alert("请在remark中填写拒绝理由！");
        else{
            var remark = document.getElementById("remark").value;
            window.location.href ='/VerifyFailed?RepairReportId=${repairReport.getId()}&remark='+remark;
            alert("审核拒绝成功！");
        }
    };

    function VerifySuccess() {
            window.location.href ='/VerifySuccess?RepairReportId=${repairReport.getId()}'
            alert("审核通过成功！");
    };
</script>
<head>
    <title>Title</title>
</head>
<style>
    td {text-align:center}
</style>
<body>

<table border="5">
    <tr>
        <td>Id</td>
        <td>${repairReport.getId()}</td>
    </tr>
    <tr>
        <td>reporterId</td>
        <td>${repairReport.getReporterid()}</td>
    </tr>
    <tr>
        <td>reporterName</td>
        <td>${repairReport.getReportername()}</td>
    </tr>
    <tr>
        <td>reporterType</td>
        <td>${repairReport.getReportertype()}</td>
    </tr>
    <tr>
        <td>Telephone</td>
        <td>${repairReport.getTelephone()}</td>
    </tr>
    <tr>
        <td>Dormregion</td>
        <td>${repairReport.getDormregion()}</td>
    </tr>
    <tr>
        <td>Dormbuilding</td>
        <td>${repairReport.getDormbuilding()}</td>
    </tr>
    <tr>
        <td>Repairdesc</td>
        <td>${repairReport.getRepairdesc()}</td>
    </tr>
    <tr>
        <td>Type</td>
        <td>${repairReport.getType()}</td>
    </tr>
    <tr>
        <td>Date</td>
        <td>${repairReport.getDate()}</td>
    </tr>
    <tr>
        <td>State</td>
        <td>${repairReport.getState()}</td>
    </tr>
    <tr>
        <td>Remark</td>
        <td><input id="remark">${repairReport.getRemark()}</td>
    </tr>
</table>
    <br>
    <button onclick="VerifySuccess(${repairReport.getId()})">审核通过</button>
    <button onclick="VerifyFailed(${repairReport.getId()})">拒绝通过</button>
</body>
</html>
